<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>正则表达式</title>
		<script type="text/javascript">
			var reg = /123/;
			console.log(reg.test(1));
			var reg1 = /[abc]/;
			console.log(reg1.test('abc'));
		</script>
	</head>
	<body>
	</body>
</html>
